package day02;
import java.util.Scanner;//创造扫面议的时候的必要代码
public class ScannerDemo {
    public static void main(String[] args) {
        Scanner  scan = new Scanner(System.in);//名为scan的扫描仪
        System.out.println("请输入年龄：");
        int age = scan.nextInt();//必须是整数 结尾时int 所以只能扫描整数  下面同上
        System.out.println("请输入商品价格：");
        double price = scan.nextDouble();//
        System.out.println("请输入产品具体价格：");
        short cool = scan.nextShort();//

        System.out.println(age);
        System.out.println(price);
    }
}
